<ui:fragment
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html" 
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.prime.com.tr/ui">

    <p:confirmDialog message="#{bundle.Realmente_quer_sair}" 
                     showEffect="bounce" hideEffect="explode"
                     header="#{bundle.Finalizar_sistema}" severity="alert" widgetVar="logout">
        <h:form>
            <p:commandButton value="#{bundle.Sim}" update="messages" oncomplete="logout.hide()" actionListener="#{buttonBean.destroyWorld}" />
            <p:commandButton value="#{bundle.Nao}" onclick="logout.hide()" type="button" />
        </h:form>
    </p:confirmDialog>

</ui:fragment>